Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
145
rated 0 times [  146] [ 1]  / answers: 1 / hits: 28587  / 14 Years ago, mon, august 16, 2010, 12:00:00

I have this code in my HTML:



<h3 id=left>Lorem Ipsum </h3>

<h3 id=right>[Current URL Here]</h3>


I want to display (dynamicly) the current URL inside the <h3> tags. I've been trying to figure it out for a few days, but I'm really a mobile developer, not an HTML developer, so it's proven difficult. I need this for an app I'm working on, so Please go easy on me :)



Thanks in advance.


More From » php

 Answers
358
document.getElementById('right').innerHTML = window.location.href;

[#95906] Thursday, August 12, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
devonw

Total Points: 311
Total Questions: 116
Total Answers: 111

Location: Senegal
Member since Fri, Aug 21, 2020
4 Years ago
;