~HOME~
Html Links
Real Audio
Midi Audio
Irc Scripts
Home Pages
Friends
Awards
WebRings
FKeySaver
WebTricks
Java Script Tricks

Java Script Tricks

This page is for Webtv users who like to play with Java Script and HTML.
These are some Java Script tricks you can use to find out useful information. I hope you enjoy these.


Find any URL: Hit your Go To key and clear the box take out the http:// and everything then enter the following javascript:alert(document.URL);

This will give you the URL of a webtv page such as the chat page or your home.

Find out what cookies are stored on your webtv: Hit your Go To key and clear the box then enter the following javascript:alert(document.cookie);

This will show any cookies that particular webpage has stored on your webtv

Change the Color Elements of any page: Hit your Go To key and clear the box then enter the following

javascript:alert(document.bgColor+"
"+document.fgColor+"
"document.linkColor+"
"+document.Vlinkcolor+"
"+document.alinkColor);

This will give you the hex codes of a page in this order bgcolor text link vlink alink

Find the URL of any image: Hit your Go To key and clear the box then enter the following

javascript:alert(document.images[0].src);

This will give you the url of an image the 0 in [0] stands for the number image on the page if the page has two images the number for the second image would be [2].

Find Height and Width of any image: Hit Go To and clear the box then enter the following

javascript:alert(document.images[0].height+"
"+document.image[0].width);

This will give you the Height and Width of any image. Once again the [0] is the image number.