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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:50:44+00:00 2026-05-28T20:50:44+00:00

Ive looked everywhere for this. How can a link specify the title of a

  • 0

Ive looked everywhere for this. How can a link specify the title of a tab and url to load?
Something like:

<a href="#" onclick="createNewTab('my tab title','','externalfile.html')">Create new tab dynamically</a>

And how can I close the tab?

The closest I found is http://www.dhtmlgoodies.com/scripts/tab-view/tab-view.html but id prefer to use jquery

Thanks

UPDATE

I found jeasyui and looks really simple but Im having some problems. heres my code:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html style="height: 100%; overflow: hidden;">   
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>test</title>
    <link rel="stylesheet" type="text/css" href="jeasyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="jeasyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="css/main.css">

    <script type="text/javascript" src="jeasyui/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="jeasyui/jquery.easyui.min.js"></script>

<script type="text/javascript">
            function open1(title,plugin){
                if ($('#tt').tabs('exists',title)){
                    $('#tt').tabs('select', title);
                } else {
                    $('#tt').tabs('add',{
                        title:title,
                        href:plugin,
                        closable:true,
                        extractor:function(data){
                            var tmp = $('<div></div>').html(data);
                            data = tmp.find('#content').html();
                            tmp.remove();
                            return data;
                        }
                    });
                }
            }
        </script>
    </head>

    <body class="easyui-layout" style="text-align:left">
        <div region="north" border="false" style="background:#666;text-align:center">
                        <div id="header-inner">
                <table cellpadding="0" cellspacing="0" style="width:100%;">
                    <tr>
                        <td rowspan="2" style="width:20px;">
                        </td>
                        <td style="height:52px;">
                            <div style="color:#fff;font-size:22px;font-weight:bold;">

                                <a href="/index.php" style="color:#fff;font-size:22px;font-weight:bold;text-decoration:none">TEST</a>
                            </div>
                                                </td>
                        <td style="padding-right:5px;text-align:right;vertical-align:bottom;">
                        </td>
                    </tr>
                </table>
            </div>

        </div>

        <div region="west" border="false" split="true" title="Menu" style="width:250px;padding:5px;">
            <ul class="easyui-tree">
                <li iconCls="icon-base"><span>Base</span><ul>
                <li iconCls="icon-gears"><a href="#" onclick="open1('test','demo.php')">test</a></li>
                <li iconCls="icon-gears"><a href="#" onclick="open1('test1','demo.php')">test1</a></li>
                <li iconCls="icon-gears"><a href="#" onclick="open1('test2','demo.php')">test2</a></li>
                <li iconCls="icon-gears"><a href="#" onclick="open1('test3','demo.php')">test3</a></li>
            </ul>
        </div>

        <div region="east" border="false" split="true" title="Live " style="width:250px;padding:5px;">
            <h1>Hello</h1>
        </div>

        <div region="center" border="false">
            <div id="tt" class="easyui-tabs" fit="true" border="false" plain="true">
                <div title="Welcome" href="dashbord.php"></div>
            </div>
        </div>
    </body>
</html>

It adds a new tab with a title but it doesn’t load the URL(demo.php)

  • 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-05-28T20:50:45+00:00Added an answer on May 28, 2026 at 8:50 pm

    Use jQuery UI !!!

    http://jqueryui.com/demos/tabs/#manipulation

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

Sidebar

Related Questions

I've looked everywhere for this but I can't seem to figure it out. I'm
I've looked everywhere and can't seem to find the answer for this problem I'm
I have looked everywhere and surprisingly can't find a good solution to this! I've
I've looked EVERYWHERE for this, can't find anything. I basically need to store an
I've looked everywhere, but can't seem to find a solution to this problem. I'm
I've looked everywhere I can think of to find an answer to this, and
I've looked everywhere, but I can't find how to do this in VB
I've looked everywhere for this but can't find an answer, so: I have a
I've looked for this everywhere and I can't find a solution... My Goal: I'm
I've looked everywhere for this function and cannot find the header files to make

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.