Forum Moderators: mack

Message Too Old, No Replies

Couple of quickies.

         

goldengob

9:15 pm on Mar 16, 2006 (gmt 0)

10+ Year Member



Please...can anyone give me the html for these 2 nagging problems I have.
The first one; I'm creating an Iframe and when I click on something within the frame, the new page opens up inside the frame. How can I make whatever I click on, open in a new window?

The second one; I've seen on certain websites "purchase by midnight 16th March and get 20% off."
My question; What is the code to make the date change automatically like this?

Appreciate it.

Thanks!

LifeinAsia

9:21 pm on Mar 16, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



How can I make whatever I click on, open in a new window?

Use the target="_blank" attribute in all the A HREF tags on the page inside the IFRAME. Of course, if you're IFRAMEing an external page, you're out of luck.

What is the code to make the date change automatically like this?

Any number of ways.
Bad way: use JavaScript (because it goes by the date/time on the client's computer)
Good way: use a server-side scripting language (e.g., PHP, ASP, Cold Fusion, etc.)