Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7941931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:48:56+00:00 2026-06-03T23:48:56+00:00

I need to do what a bookmarklet does but from my page directly. I

  • 0

I need to do what a bookmarklet does but from my page directly.

I need to pull the document.title property of a web page given that url.

So say a user types in http://www.google.com, I want to be able to somehow pull up google.com maybe in an iframe and than access the document.title property.

I know that bookmarklets ( the javacript that runs from bookmark bar ) can access the document.title property of any site the user is on and then ajax that information to the server.

This is essentially what I want to do but from my web page directly with out the use of a bookmarklet.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:48:58+00:00Added an answer on June 3, 2026 at 11:48 pm

    According to This question
    You can achive this using PHP, try this code :

        <?php
    
    function getTitle($Url){
        $str = file_get_contents($Url);
        if(strlen($str)>0){
            preg_match("/\<title\>(.*)\<\/title\>/",$str,$title);
            return $title[1];
        }
    }
    //Example:
    echo getTitle("http://www.washingtontimes.com/");
    
    ?>
    

    However, i assume it is possible to read file content with JS and do the same logic of searching for the tags.

    Try searching here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some text on an HTML page. Need a bookmarklet (no jQuery) that
I'm building a bookmarklet for a service. I need to transfer data (url, text)
I'm making a bookmarklet for a website that will need to parse multiple pages.
I've coded a bookmarklet that opens a new window at a certain URL and
I've got a lot of mysql data that I need to generate reports from.
I am writing a simple bookmarklet that runs on youtube page and fetch some
I'm trying to build a bookmarklet that does the following: 1.)loads an external js,
I need a user to navigate to a certain page that has a certain
I'm trying to make a bookmarklet that does something similar to what Instapaper's does.
This is what I am trying to accomplish: location.replace('http://localhost:8888/test/index.php?site=' + document.URL); So I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.