Click to See Complete Forum and Search --> : How to make for SEO friendly pop-up window?


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?

felgall
03-28-2008, 05:36 AM
That's as SEO friendly as it gets and also as cross browser compatible as you can get without dropping the JavaScript code and just letting your visitors decide how they want it to open.

toplisek
03-28-2008, 05:43 AM
How I know (elements) when there is search friendly html code and I use also javascript?

toplisek
03-29-2008, 04:42 AM
How I know (elements) when there is search friendly html code and I use also javascript?

In other words (SEO issue):
How to do that this code will recognise link referrer (source of page) and adjust size of new window only if link comes from page.