Solved

Load a href with SCRIPT

Posted on 2000-03-21
1
204 Views
Last Modified: 2010-04-09
Hi
Please go look at my site:
http://ejmidi.bizland.com
Set your screen res. to 800*600 or lower

The an alert pop's up saying: "Hey the site is best viewed using ../lores.htm try go there"

But I want it to be automatic. The SCRIPT shall load the lores.htm when the resolution is to low.

That meanes the script shall automaticly take the user from the site
http://ejmidi.bizland.com to
http://ejmidi.bizland.com/lores.htm

How is that done ??
0
Comment
Question by:win32
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
Bhargava earned 10 total points
ID: 2641253
Replace:(in the left frame)
<script Language="Javascript">
 if(screen.width<1024) alert("Warning: Your resolution is under 1024*768. For better view please go to http://ejmidi.bizland.com/lores.htm");
</script>
with:
<script Language="Javascript">
 if(screen.width<1024)
top.location.href = "http://ejmidi.bizland.com/lores.htm";
</script>

hope this helps
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question