/    Sign up×
Community /Pin to ProfileBookmark

How to make for SEO friendly pop-up window?

I have code with javascript like:

[code=html]
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(); }
}
[/code]

and HTML code:

[code=html]
<a href=”mypop-up-window.php” onclick=”NewWindow(this.href,’Window’,’500′,’450′,’yes’);return false;”>More…</a>
[/code]

How to make it for for SEO friendly and it will be working perfect for all browsers?

to post a comment
SEO

3 Comments(s)

Copy linkTweet thisAlerts:
@felgallMar 28.2008 — 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.
Copy linkTweet thisAlerts:
@toplisekauthorMar 28.2008 — How I know (elements) when there is search friendly html code and I use also javascript?
Copy linkTweet thisAlerts:
@toplisekauthorMar 29.2008 — How I know (elements) when there is search friendly html code and I use also javascript?[/QUOTE]

[B]In other words (SEO issue):[/B]

[I]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. [/I]
×

Success!

Help @toplisek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...