skip navigation
All Products
Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
NEW
: Design Kits for Figma
Online Training
Document Processing Library
Embedded Reporting for web and desktop
Web
Kendo UI
UI for jQuery
UI for Angular
UI for React
UI for Vue
UI for Blazor
UI for ASP.NET Core
UI for ASP.NET MVC
UI for ASP.NET AJAX
Mobile
UI for .NET MAUI
UI for Xamarin
Document Management
Telerik Document Processing
Desktop
UI for .NET MAUI
UI for WinUI
UI for WinForms
UI for WPF
Reporting & Mocking
Telerik Reporting
Telerik Report Server
Telerik JustMock
Automated Testing
Test Studio
Test Studio Dev Edition
CMS
Sitefinity
UI/UX Tools
ThemeBuilder
Design System Kit
Debugging
Fiddler
Fiddler Everywhere
Fiddler Classic
Fiddler Jam
FiddlerCap
FiddlerCore
Extended Reality
UI for Unity XR
Free Tools
JustAssembly
JustDecompile
VB.NET to C# Converter
Testing Framework
View all products
Demos
Services
Blogs
Docs & Support
Pricing
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
Community Forums
This is a migrated thread and some comments may be shown as answers.
How to obtain the name of a Javascript variable
0 Answers
35 Views
Miscellaneous
This is a migrated thread and some comments may be shown as answers.
Jochen Neyens
Top achievements
Rank 1
Jochen Neyens
asked on
24 Feb 2006,
08:06 AM
Is there a function that can be used to get the name of a Javascript variable? Look at the example below. Is there a function like "GetVarName"? alert(GetVarName(tt)) sould alert the text "myText" ...
var myText = "lorem";
function test(tt) {
alert(GetVarName(tt));
}
test(tt);
Add a comment
Submit comment
Cancel
No answers yet. Maybe you can help?
Answer this question
Drag and drop files here or
browse
to attach...
Browse
for files to attach...
Supported file types: PNG, JPG, JPEG, ZIP, RAR, TXT. Max total file size - 20MB.
Submit answer
Cancel
Tags
Miscellaneous
Asked by
Jochen Neyens
Top achievements
Rank 1
Share this question
or
Copy link