on clicking of hyperlink , calling below function
window.open("<%=forhyperlink%>",'name','height=600,width=800');
the issue , above line , 1 time hyper link click working (that if hyper link clicked , no window being opened up)
but if remove parameters window.open , use
window.open("<%=forhyperlink%>");
then on click of every hyperlink new window being opened.
please adivce .
change name
of each window per link window opened on initial click won't re-used.
i'm guessing clicking on other links opens links on initial/currently opened pop-up , causes confusion doesn't open new windows.
// first window open window.open("first.html",'name','height=600,width=800'); // opens in same window first.html opened because // targets same window called `name` window.open("second.html",'name','height=600,width=800'); // works because default open new 1 everytime executed window.open("new.html"); // opens window unique name window.open("<%=forhyperlink%>",'name_' + math.random(),'height=600,width=800');
Comments
Post a Comment