Online computer courses, code, programming tutorial and sidebar information for monitoring Canadian S&P/TSX index. Build friendship and networking. Welcome to visit my blogs often!!! I also have two other sites: YouTube Channel and Google site.
Adsense
Popular Posts
- PHPWind-- A PHP forum script applcaition in China
- How to blend adsense inside your post?
- Formatting my post
- Notepad++ - Add C++ compiler
- Install PHPMailer 5.2.4 and use smtp gmail
- Set up a child account and set screen time limit in Windows 8
- Wayback Machine - see archived versions of web pages across time
- phpexcel toggle expand and hide column in EXCEL and summary
- Install PHP ibm_db2 extension in Linux (redHat)
- PHP: add a download as pdf file button in report page
Sunday, April 22, 2012
Using Google to search only your site
You may not want to spend time to design a search engine to search over your website. Yes, you can use Google to search only over your site. For example, I want to search "Canada Economy 2012" only in tsx.com. I just need to input "site:tsx.com, Canadian economy 2012" in Google search. All results are from tsx.com. Similarly, if you used " site:money.cnn.com", then all results are from money.cnn.com.
Below is the example to search the content in the website checked (only one website allowed to be checked)
Source code:
<form action="http://www.google.com/search" method="get" target="_blank">
<input maxlength="255" name="q" size="25" type="text" value="" />
<input type="submit" value="Google Search" /><br />
<input name="sitesearch" type="checkbox" value="video.yahoo.com" />video.yahoo.com <br />
<input name="sitesearch" type="checkbox" value="www.youtube.com" /> www.youtube.com <br />
<input name="sitesearch" type="checkbox" value="www.dailymotion.com" />www.dailymotion.com <br />
<input name="sitesearch" type="checkbox" value="www.truveo.com" /> www.truveo.com </form>
Result:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment