|
-
July 25th, 2005, 03:51 AM
#1
passing parameters problem
hi
i am trying to send the parameters to the popup window from js function.
Now this is my js function and i am trying to send parameters to popup.
var newwindow = '';
function popitup(url,st,ed)
{
newwindow=window.open(url,'name','height=400,width=350');
var txt = st+'<br>'+ed
newwindow.document.body.innerHTML += txt;
}
this is the call to the function
popitup("\main.html","10","20");
This is javascript in my popup window(html) page
var begin = ' ';
var end = ' ';
document.write(begin)
document.write("<br>")
document.write(end)
document.write("<br>")
but this is not working......
whats the problem?how should i send the parameters?i want to write that paaramets in popup window.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|