I would like to convert a numerical value to a text string. I am opening several windows with the window.open()
command and I would like these windows not to be on top of each other.
For that I use the argument "left" and "top" in the windows.open command but these parameters need to be text entities.
for (var i = 0; i < final_number; ++i )
{
left_value=50+(50*i);
list[i]=window.open(url[i],"","height=500,left=left_value,width=1000");
};
When calculating left_value=50+(50*i)
, the result is numerical.
The problem is that the window.open()
command is expecting a text parameter for left_value
.
I thus want to convert left_value from X
to "X"