toplisek
03-28-2008, 02:47 AM
I have code with javascript like:
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
and HTML code:
<a href="mypop-up-window.php" onclick="NewWindow(this.href,'Window','500','450','yes');return false;">More...</a>
How to make it for for SEO friendly and it will be working perfect for all browsers?
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
and HTML code:
<a href="mypop-up-window.php" onclick="NewWindow(this.href,'Window','500','450','yes');return false;">More...</a>
How to make it for for SEO friendly and it will be working perfect for all browsers?