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 8442655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:54:01+00:00 2026-06-10T08:54:01+00:00

There might be a duplicate of this (I’ve tried checking questions on creating dynamic

  • 0

There might be a duplicate of this (I’ve tried checking questions on creating dynamic links but they reference a static link – I want this link to be hidden from the user). On testing the following code on the ww3 site:

<!DOCTYPE html>
<html>
<body>

<script type="text/javascript">
document.write("<a href=&quot;www.google.com&quot;>Google</a>");
</script>

</body>
</html>

I get:

 http://www.w3schools.com/jsref/%22www.google.com%22

As the link address rather than http://www.google.com.

How do I correct this problem? And how do I make it so the link only appears after a set time? Note, this is a simplified version of the code for readability (the dynamic link will including two floating point variables assigned at the time the script is run).

  • 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-10T08:54:03+00:00Added an answer on June 10, 2026 at 8:54 am

    You have 2 issues:

    1) You need http:// before the URL so it’s: http://www.google.com
    2) You don’t need to use quotes in document.write, but if you want to you can do one of these 3:

    document.write('<a href="http://www.google.com">Google</a>');
    document.write("<a href='http://www.google.com'>Google</a>");
    document.write("<a href=http://www.google.com>Google</a>");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to research this, but there were still some questions left unanswered. I
This might be a duplicate question but as you can see they didn't get
This might sound like a duplicate, but I have searched through the forum questions
There might be a really simple solution to this question, but i just don't
There might be similar questions but I still have some parts that I couldn't
I realise there might be similar questions but I couldn't find one that was
I guess there might be some overlapping with previous SO questions, but I could
This might seem as silly question but I am thinking there might be the
You will suppose this is a big question.but there might be a simple problem
Ok.. This might be the duplicate.. but I dont think I even know the

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.