h1

view source

July 9, 2007

view source
If you don’t know by now, all client-side scripts are available by viewing the source code with your browser.
Internet Explorer: Right-click > View Source
Firefox: Right-click > View Page Source

What’s so special about looking at a pages source? Well, the most obvious is that you can see what other developers did to get their page how they did. It’s impossible to server-side code (ASP, JSP, PHP) simply because it’s processed on the server (hence the clever name). That being said, you can still see some juicy code with your browser using the methods above.

If you like a particular color or effect that is used on a web page, do some snooping and you just might find the source you need. Sometimes developers put their JavaScript and CSS files in outside folders as opposed to putting them directly on the page. This keeps the code cleaner and easier to maintain. Check out the source of any webpage and start investigating! You might see a link to a CSS style sheet somewhere at the top of the code (usually the first 10-20 lines). The formatting for that is:

<link rel “stylesheet” href=”../blah.css” type=”text/css”>

The “../” means one level up in the directory structure. Now all you have to do is find out what directory your in on the website, go a level up and type the name of the CSS style sheet. You can also do the same thing for JavaScript. Often times the full URL for the script is in the href for the include. If your lucky, the developer may have included comments that explain what is going on.

Go on now, view source!!

Advertisements

3 comments

  1. […] find a page of a video you want. Then right click on the page select “view source” (you should always view the source of any page that your interested in; sometimes developers […]


  2. […] like: properties, view page info, exporting options (depending on your browser), and the infamous view page source. The thing is, you could also view a page’s source by clicking on your browsers tool bar and […]


  3. Друзья , подскажите , кто знает или сталкивался.

    Есть потребность купить украшение с бриллиантом массой более карата, но понимаю , что это стоит очень дорого и мне не по карману.

    Но читала , что существуют облагороженные бриллианты, которые ничем не отличаются от обычных, но стоят меньше в

    два раза.

    Кто-нибудь вообще держал такие в руках, они правда прекрасны ?



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: