*or you can do it
<a href="javascript: location.href="newPage.htm
Then get the param string from the url in your page newPage.html with a simple get args function onLoad.
Main Topics
Browse All TopicsHello,
Is it possible to pass a client screen resolution in an href tag?
Specifically, I have some google ads and would like to pass the client width to my site when someone clicks on the ad. In google adwords, you tell it to which URL to connect if a user clicks on an ad. I am wondering if the document.clientWidth property can be somehow incroporated into this.
Thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Something like this perhaps?
<script>
function getAds(width){
switch (width)
{case 800:
URL="http://google.com";
break;
case 1024:
URL="http://MSN.com";
break;
case 1152:
URL="http://yahoo.com";
break;
default:
URL="http://aol.com"
}
document.location=URL
}
</script>
<a href="#" onclick="getAds(screen.wid
Business Accounts
Answer for Membership
by: BatalfPosted on 2005-06-28 at 08:46:38ID: 14319660
You can try to redirect with javascript
wPage.html ?clientWid th?'+scree n.width;re turn false">Ad</a>
<a href="#" onclick="location.href='ne
now, the user will be redirected to "newPage.html" and the size of the users screen will be sent in the variable "clientWidth".
Batalf